#include <REGX52.H>
#include "delay.h"
#include "MatrixLED.h"

unsigned char code Animetion[] = {0x00,0x00,0x00,0x00,
0xFF,0x08,0x08,0x08,0xFF,0x00,0x00,0x3E,0x29,0x19,0x00,0xFF,0x01,0x02,0x00,0xFF,
0x01,0x02,0x00,0x0E,0x11,0x11,0x0E,0x00,0xFD,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
	0x00,0x00,0x00,0x00};


void main()
{
	unsigned int j,offset,count;
	MatrixLED_Init();
	while(1)
	{
		for(j=0;j<8;j++)
		{
			MatrixLED_ShowColumn(j,Animetion[j+offset]);
		}
		count++;
		if(count>10)
		{
			count = 0;
			offset++;
			if(offset>32)
			{
				offset = 0;
			}
		}
	}
}
